<%@ page language="java" import="gt.service.*,java.util.*,gt.domain.*" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改联系人</title>
</head>
<body>
<% 	
    //建立企业性质，企业类型，企业资信，开户银行，客户服务对象，
    //调用其中统计方法得到其中的值填入选项中
	//这是客户名称统计
	KhxxService khxxService = new KhxxService();
	ArrayList<String> countKhxx=khxxService.getCountKhxx();
	request.setAttribute("countKhxx", countKhxx);
	String lxrxx_id=request.getParameter("lxrxx_id");
	LxrxxService lxrxxService = new LxrxxService();
	Lxrxx lxrxx=lxrxxService.getLxrxxById(lxrxx_id);
	request.setAttribute("lxrxx", lxrxx);

    
%>
<img alt="" src="/ClientManager/images/33.png">
<hr>
<form action="<%=request.getContextPath()%>/alterLxrxx.do" method="post" target="right">
	<table  width="600px" border="1" cellspacing="0">
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">联系人编号:</font></td><td valign="bottom"><input type="text" name="lxrxx_id" value="${lxrxx.lxrxx_id}"/></td><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">企业名称:</font></td><td valign="bottom"><select name="lxrxx_qymc"><option value="">----------请选择----------</option><c:forEach items="${countKhxx}" var="allKhxx" ><c:if test="${lxrxx.lxrxx_qymc==allKhxx}"><option selected="selected" value="${allKhxx}">${allKhxx}</option></c:if><c:if test="${lxrxx.lxrxx_qymc!=allKhxx}"><option value="${allKhxx}">${allKhxx}</option></c:if></c:forEach></select></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">联系人姓名:</font></td><td valign="bottom"><input type="text" name="lxrxx_xm" value="${lxrxx.lxrxx_xm}"/></td><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">联系人性别:</font></td><td valign="bottom"><select name="lxrxx_xb"><option value="">----------请选择----------</option><c:if test="${lxrxx.lxrxx_xb=='男'}"><option value="男" selected="selected">男</option><option value="女">女</option></c:if><c:if test="${lxrxx.lxrxx_xb!='男'}"><option value="女" selected="selected">女</option><option value="男">男</option></c:if></select></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">出生年月:</font></td><td valign="bottom"><input type="text" name="lxrxx_csny" value="${lxrxx.lxrxx_csny}"/></td><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">联系人年龄:</font></td><td valign="bottom"><input type="text" name="lxrxx_nl" value="${lxrxx.lxrxx_nl}"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">联系人职位:</font></td><td valign="bottom"><input type="text" name="lxrxx_zw" value="${lxrxx.lxrxx_zw}"/></td><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">联系人办公电话:</font></td><td valign="bottom"><input type="text" name="lxrxx_bgdh" value="${lxrxx.lxrxx_bgdh}"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">联系人电子邮件:</font></td><td valign="bottom"><input type="text" name="lxrxx_Email" value="${lxrxx.lxrxx_Email}"/></td><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">联系人手机:</font></td><td valign="bottom"><input type="text" name="lxrxx_sj" value="${lxrxx.lxrxx_sj}"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">登记日期:</font></td><td valign="bottom"><input type="text" name="lxrxx_djrq" value="${lxrxx.lxrxx_djrq}"/></td><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">信息登记人:</font></td><td valign="bottom"><input type="hidden" name="lxrxx_djr" value="${admin.name}"/>${admin.name}</td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">是否客户联系人:</font></td><td valign="bottom" ><select name="lxrxx_judge"><option value="">----------请选择----------</option><c:if test="${lxrxx.lxrxx_judge=='是'}"><option value="是" selected="selected">是</option><option value="否">否</option></c:if><c:if test="${lxrxx.lxrxx_judge!='是'}"><option value="否" selected="selected">否</option><option value="是">是</option></c:if></select></td><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">备注:</font></td><td valign="bottom"><input type="text" name="lxrxx_bz"value="${lxrxx.lxrxx_bz}"/></td></tr>
	<tr height="20px"><td align="center" valign="bottom" bgcolor="#FFCC33" colspan="4"><font size="3">个人简介:</font></td></tr>
	<tr ><td colspan="4"><textarea name="lxrxx_grjj" cols="90" rows="5">${lxrxx.lxrxx_grjj}</textarea></td></tr>
	
	<tr><td></td><td valign="top" colspan="3"><input style="font-size: 15px" type="submit" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input style="font-size: 15px" type="reset" value="重置"></td></tr>
	

 </table>
</form>
</body>
</html>